package com.xianrenit.xianrenpuzi.product.mapper;

import com.xianrenit.xianrenpuzi.model.entity.product.ProductSku;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductSkuMapper extends BaseMapper<ProductSku> {
    //QueryWrapper必须指定别名为 ew
    List<ProductSku> selectSkuPageByCondition(Page<ProductSku> page,
                                              @Param(value = Constants.WRAPPER) QueryWrapper<ProductSku> queryWrapper);
}
